//
//  AppSettingPreference.h
//  FoxitApp
//
//  Created by foxit on 15/6/3.
//
//

#import <Foundation/Foundation.h>
#import <FxkpMRSDK/FXEnum.h>
#import <FxkpMRSDK/FxThemeManager.h>

@interface AppSettingPreference : NSObject

+ (NSString *)getAnnotationAuthor;
+ (void)remoeAnnotationAuthor;
/// if isUsed=YES, use device name when author is empty, this is for set author in edit page; otherwise clear author when author is empty, this is used in setting page.
+ (void)setAnnotationAuthor:(NSString *)author useDeviceName:(BOOL)isUse;
+ (NSString *)getAnnotationcurrentDeviceName;
+ (BOOL)getApplicationNeedLock;
+ (NSString *)getApplicationNeedLockPassword;
+ (void)setApplicationNeedLock:(BOOL)needLock withPassword:(NSString *)password;
+ (BOOL)getPDFRememberLastPage;
+ (void)setPDFRememberLastPage:(BOOL)remember;
+ (BOOL)getPDFHighlightFormField;
+ (void)setPDFHighlightFormField:(BOOL)needHighlight;
+ (UIColor *)getPDFHighlightFormFieldColor;
+ (void)setPDFHighlightFormFieldColor:(UIColor *)color;
+ (BOOL)getPDFHighlightLinks;
+ (void)setPDFHighlightLinks:(BOOL)needHighlight;
+ (UIColor *)getPDFHighlightLinksColor;
+ (void)setPDFHighlightLinksColor:(UIColor *)color;
+ (int)getPDFReadMode;  //0: day, 1: night
+ (void)setPDFReadMode:(int)readMode;
+ (void)setPDFReflowScale:(float)scale;
+ (float)getPDFReflowScale;
+ (void)setPDFReflowNeedShowImage:(BOOL)needShowImage;
+ (BOOL)getPDFReflowNeedShowImage;
+ (BOOL)getPDFNeedShowAnnotationBar;
+ (void)setPDFNeedShowAnnotationBar:(BOOL)needShow;

/// 获取当前自动同步文档模式 - 默认为“Wi-Fi+移动蜂窝网络”  0=关闭自动同步   1=wifi自动同步    2=wifi和移动数据自动同步
+ (int)getAutoSyncMode;
/// 设置当前同步文档模式 -
/// @param autoSyncMode autoSyncMode  0=关闭自动同步   1=wifi自动同步    2=wifi和移动数据自动同步
+ (void)setAutoSyncMode:(int)autoSyncMode;
+ (BOOL)getAnalyticShouldTrace;
+ (void)setAnalyticShouldTrace:(BOOL)needTrace;
+ (BOOL)getContinuousAddTextAnnotation;
+ (void)setContinuousAddTextAnnotation:(BOOL)shouldContinuous;

/// 获取单页模式时点击左/右边界翻页
+ (BOOL)getSingleTapLeftOrRightTurnPage;
/// 设置单页模式时点击左/右边界翻页
/// @param turn YES:点击翻页，NO点击不翻页
+ (void)setSingleTapLeftOrRightTurnPage:(BOOL)turn;

/// 获取双击放大状态 默认可用YES
+ (BOOL)getDoubleTapScale;
/// 设置双击放大是否可用
/// @param turn YES:可用，NO:不可用
+ (void)setDoubleTapScale:(BOOL)doubleClick;

/// 获取当前是否自动锁屏
+ (BOOL)getAutoLockScreen;
/// 设置自动锁屏
/// @param lock YES：不自动锁屏，NO：自动锁屏
+ (void)setAutoLockScreen:(BOOL)lock;

/// 获取当前是否是黑夜模式
+ (BOOL)getThemeDarkType;
/// 设置模式
/// @param type type
+ (void)setThemeDarkType:(FxThemeType)type;

/// 获取 是否后台朗读
+ (BOOL)getSpeechBackground;
///  设置后台朗读
/// @param back YES/NO
+ (void)setSpeechBackground:(BOOL)back;

/// 获取 朗读时是否自动翻页
+ (BOOL)getSpeechAutoTurnPage;
/// 设置 朗读时是否自动翻页
/// @param autoTrun YES：自动翻页，NO：不自动翻页
+ (void)setSpeechAutoTurnPage:(BOOL)autoTrun;

/// 设置 是否是第一次安装
/// @param install
+ (void)setFirstInstall:(BOOL)install;
/// 获取 是否是第一次安装
+ (BOOL)getFirstInstall;

+ (NSString*)getReviewerName;
+ (void)setReviewerName:(NSString*)reviewerName;
+ (NSString*)getReviewerEmail;
+ (void)setReviewerEmail:(NSString*)reviewerEmail;

+ (NSString*)getAccountName;
+ (void)setAccountName:(NSString*)accountName;

+ (BOOL)autoConvertToCpdf;
+ (void)setAutoConvertToCpdf:(BOOL)autoConvert;
+(TrackingNetworkStatus)getTrackingNetworkStatus;
+(void)setTrackingNetworkStatus:(TrackingNetworkStatus)status;

+ (BOOL)getRememberViewDocuments;
+ (void)setRememberViewDocuments:(BOOL)remember;
+ (NSString*)getLastViewDocumentsPath;
+ (void)setLastViewDocumentsPath:(NSString*)filePath;

+ (BOOL)getAutoSave;
+ (void)setAutoSave:(BOOL)autoSave;

+ (BOOL)getRegisterNewVersionPermission;
+ (void)setRegisterNewVersionPermission:(BOOL)allowPermission;
+ (BOOL)getStartReviewPermission;
+ (void)setStartReviewPermission:(BOOL)allowPermission;

+(VolumKeyAction)getVolumKeyAction;
+(void)setVolumKeyAction:(VolumKeyAction)action;

@end
